﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Popup.Master" ValidateRequest="false"
    Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.ViewModels.MediaObjectViewModel>" %>

<%@ Import Namespace="Beeldbankmvc.Code" %>
<%@ Import Namespace="Beeldbankmvc.Controllers" %>
<%@ Import Namespace="Beeldbankmvc.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">Reacties op Media Object</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Reacties op Media Object</h1>
    <% foreach (BEELDBANK_REACTIE reaction in Model.reactionObjects)
       { %>
    <% using (Html.BeginForm("Reaction", "MediaObject", FormMethod.Post))
       {%>
    <fieldset>
        <div class="editor-field">
            <% if (reaction.Boodschap.Length > 0) {%>
                <%: Html.TextAreaFor(m => reaction.Boodschap, 10, 50, null)%>
            <%} %>
            <% if (reaction.MediaObjectTitel.Length > 0) {%>
                <%: Html.TextAreaFor(m => reaction.MediaObjectTitel, 2, 50, null)%>
            <%} %>
            <% if (reaction.MediaObjectLokatie.Length > 0) {%>
                <%: Html.TextAreaFor(m => reaction.MediaObjectLokatie, 2, 50, null)%>
            <%} %>
            <% if (reaction.MediaObjectOmschrijving.Length > 0) {%>
                <%: Html.TextAreaFor(m => reaction.MediaObjectOmschrijving, 10, 50, null)%>
            <%} %>
            <div>
                <%: Html.DropDownList("Reaction")%>
                <input type="hidden" name="reactionId" value="<%= reaction.Id  %>" />
                <input type="submit" name="submit" value="Afgehandeld" title="Afgehandeld" />
            </div>
            <strong>Naam: </strong>
            <%: reaction.Naam%><br />
            <strong>Email: </strong>
            <%: reaction.EmailAdres%><br />
            <strong>Telefoon: </strong>
            <%: reaction.Telefoon%><br />
        </div>
    </fieldset>
    <%} %>
    <%} %>
</asp:Content>
